package com.towexin.application.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * TODO
 * 角色表
 * @author Towexin
 * @version 1.0
 * @date 2021/4/13 15:00
 */
@Data
@TableName("t_role")
public class Role {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private String pid;

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private String roleName;        // 角色名称

    @TableField(insertStrategy = FieldStrategy.NOT_NULL, select = false)
    private String roleType;        // 角色类型 前端不用传默认 cac(自建)

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private Boolean status;      // 角色状态 是否启用

    @TableField
    private String mark;        // 角色标识

    @TableField
    private Boolean defaultRole;    // 是否默认角色

    @TableField
    private String roleRemarks;     // 角色配注

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private Boolean open;            // 是否展开

    @TableField(fill = FieldFill.INSERT, insertStrategy = FieldStrategy.NOT_NULL)
    private Date createdTime;

    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
}
